
.medium__warp {
    padding: 0;
}

.cm-container--flex__left {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.medium__img {
    height: 100%;
    width: 100%;
    border-top: 1px solid $border-color;
    overflow-y: scroll;
    user-select: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    .img__item img {
        //width: 100%;
        height: 100%;
        box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.2);
        user-select: none;
    }
    .img__item .title {
        margin-top: .5rem;
        text-align: center;
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        user-select: text;
    }
    .img__item .img {
        height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    .img__item {
        position: relative;
        float: left;
        width: 170px;
        //height: 200px;
        margin: .1rem;
        //border: 1px solid $border-color;
        overflow: hidden;
        transition: background-color .15s ease-in;
        padding: 10px;
        border: 1px solid transparent;
        &:hover {
            background-color: rgba($primary, .2);
            //transform: scale(1.05);
        }
        &:hover .check {
            display: block;
            opacity: .4;
        }
    }
    .img__item .check {
        position: absolute;
        top: 5px;
        left: 5px;
        height: 21px;
        width: 21px;
        display: none;
        cursor: pointer;
    }
    .img__item .check i {
        color: $primary;
        font-size: 24px;
    }

    //.img__item:last-child {
    //    clear: both;
    //}
    .img__item--active {
        border: 1px solid rgba($primary, .6);
        background-color: rgba($primary, .2);
        //background-color: rgba($logo-color, .2);
        //box-shadow:2px 2px 8px 0 $logo-color;
        .check {
            display: block !important;
            opacity: 1 !important;
        }
    }

}

.medium__img--not-more {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid $border-color;
    float: left;
    clear: both;
    width: 100%;
}

.medium__opt {
    padding: 1rem;
    flex-shrink: 0;
    .ivu-form-item {
        margin-bottom: 0;
        margin-right: 0;
    }
    .ivu-form-item-label {
        padding-right: 0;
    }
    .ivu-poptip-body {
        padding: 0;
    }
    .ivu-color-picker-picker-colors {
        padding: 0 1rem .5rem;
    }
}

.medium__right {
    padding: 0;
    width: 300px;
    border-left: 1px solid $border-color;
    display: flex;
    flex-direction: column;
    &:before {
        content: none;
    }
    .ivu-card-head {
        padding: 1rem;
        line-height: 32px;
    }
}

.invalid-curd-warp {
    .curd-toolbar__filter-form, .curd-toolbar--right, .curd-header {
        display: none;
    }
    .curd-body {
        margin: 15px -15px 0;
    }
}


.image-modal-warp {

    .ivu-modal-body {
        //display: flex;
        //flex-direction: column;
    }

    .medium__img {
        max-height: 60vh;
    }
    .curd-container--flex__modal {
        min-width: 400px;
    }
    .curd-header {
        display: none;
    }
    .curd-container--flex__modal {

    }


}
.image-modal__select-info {
    position: relative;
    display: flex;
    flex-direction: column;
    .title {
        overflow: hidden;
        word-wrap: normal; /* for IE */
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .preview {
        margin-top: 1rem;
        position: relative;
        height: 200px;
        margin-bottom: 48px;
    }

    //.preview .item:first-child {
    //
    //}
    .preview .item {
        position: absolute;
        bottom: 0;
        left: 0;
        box-shadow: 3px 2px 3px 0 rgba(0, 0, 0, 0.35);
    }
    .preview .item--width {
        width: 200px;
        height: auto;
        max-height: 200px;
    }
    .preview .item--height {
        height: 200px;
        width: auto;
        max-width: 200px;
    }
    $maxImage: 10;
    $spacer: 4px;
    @for $i from 1 through $maxImage {
        .preview .item:nth-child(#{$i}) {
            bottom: $i * $spacer * -1;
            left: $i * $spacer;
        }
    }
    .image-modal__footer {
        margin-top: auto;

    }
}
